$(document).ready(function() {

$( "#addGame" ).button({
            icons: {
                primary: "ui-icon-plusthick"
            },
            text: true
        }).next().button({
            icons: {
                primary: "ui-icon-pencil"
            }
        }).next().button({
            icons: {
                primary: "ui-icon-trash"
            }
        });
       // GameID = '13';
       // openBallByBallCommentaryWindow();
     	//$("#liveMatchNav ul").tabs("#matchPanes > div", {effect: 'fade', fadeOutSpeed: 400});
       // initPlayerInsertToGameWindow();
//       							$('.featuredGames').kwicks({
//					max : 200,
//					spacing : 2
//				});

		$( "#tabs" ).tabs();
		$( ".tabs-bottom .ui-tabs-nav, .tabs-bottom .ui-tabs-nav > *" )
			.removeClass( "ui-corner-all ui-corner-top" )
			.addClass( "ui-corner-bottom" );

                $(".openCommentaryMatchLink").click(function(e){
                e.preventDefault();
                $('body').scrollTop(0);
               GameID = $(this).attr('name');
                openBallByBallCommentaryWindow();
                });

                $(".openPlayerMatchMatchLink").click(function(e){
                e.preventDefault();
                $('body').scrollTop(0);
                GameID = $(this).attr('name');
                initPlayerInsertToGameWindow();
                });
});